/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm.clinica.com;

import java.io.Serializable;
/**
 * Contiene los datos de un paciente.
 */
public class Paciente implements Serializable {
	public Paciente() {
	}
	
	private java.util.Set this_getSet (int key) {
		if (key == orm.clinica.com.ORMConstants.KEY_PACIENTE_PRESTACION) {
			return ORM_prestacion;
		}
		
		return null;
	}
	
	org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public java.util.Set getSet(int key) {
			return this_getSet(key);
		}
		
	};
	
	private String rut;
	
	private String nombre;
	
	private String direccion;
	
	private java.util.Set ORM_prestacion = new java.util.HashSet();
	
	public void setRut(String value) {
		this.rut = value;
	}
	
	public String getRut() {
		return rut;
	}
	
	public String getORMID() {
		return getRut();
	}
	
	public void setNombre(String value) {
		this.nombre = value;
	}
	
	public String getNombre() {
		return nombre;
	}
	
	public void setDireccion(String value) {
		this.direccion = value;
	}
	
	public String getDireccion() {
		return direccion;
	}
	
	private void setORM_Prestacion(java.util.Set value) {
		this.ORM_prestacion = value;
	}
	
	private java.util.Set getORM_Prestacion() {
		return ORM_prestacion;
	}
	
	public final orm.clinica.com.PrestacionSetCollection prestacion = new orm.clinica.com.PrestacionSetCollection(this, _ormAdapter, orm.clinica.com.ORMConstants.KEY_PACIENTE_PRESTACION, orm.clinica.com.ORMConstants.KEY_PRESTACION_PACIENTERUT, orm.clinica.com.ORMConstants.KEY_MUL_ONE_TO_MANY);
	
	public String toString() {
		return String.valueOf(getRut());
	}
	
}
